package com.liyuci.testjpa;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.liyuci.core.entity.BaseModel;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @author liyuci
 * @date 2018-01-24 13:50:00
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "ct_TestEntity")
public class TestEntity extends BaseModel {

	private static final long serialVersionUID = 1L;
	private String name;
	private String firstName;
	private String lastName;
	private Integer age;
	@Column(precision = COLUMN_PRECISION, scale = COLUMN_SCALE)
	private BigDecimal score;
	@Lob
	@Basic(fetch = FetchType.LAZY)
	private String memo;
	private Date date;
}
